package com.cy.sca.notice.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/notice/")
public class NoticeController {

    @PostMapping("/sms/send")
    public String doSendCodeMsg(@RequestBody Map<String,Object> logInfoMap) {

        System.out.println("notice.msg=" + logInfoMap);
        //后续在此位置调用短信平台发短信
        return "send ok";

    }

    @PostMapping("/log/record")
    public String doSendCodeLog(@RequestBody Map<String,Object> log) {

        System.out.println("notice.log=" + log);
        //后续在此位置调用短信平台发短信
        return "log ok";

    }

}
